import { axios } from '@/utils/request'
export function selectPage(parameter) {
  return axios({
    url: '/coupon/config/selectList/' + parameter.pageNum + "/" + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}
export function del(parameter) {
  return axios({
    url: '/coupon/config/delete/' + parameter,
    method: 'get'
  })
}

export function save(parameter) {
  return axios({
    url: '/coupon/config/save',
    method: 'post',
    data: parameter
  })
}

export function selectConfigByCompanyId(parameter) {
  return axios({
    url: '/coupon/config/selectConfigByCompanyId/'+parameter,
    method: 'get'
  })
}

export function selectAll(parameter) {
  return axios({
    url: '/coupon/config/selectAll',
    method: 'GET'
  })
}

export function saveConfig(parameter) {
  return axios({
    url: '/coupon/config/saveConfig',
    method: 'post',
    data: parameter
  })
}